<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if condition="$row.status == '2'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('领取方式')}:</label>
        <div class="col-xs-12 col-sm-3">
            <select id="c-gain_method" class="form-control selectpicker" name="row[gain_method]" style="height:31px;">
                {foreach name="gainMethodList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.gain_method" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="{$row.gain_method == 1 ? 'hide': ''}" id="box-express">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('快递公司')}:</label>
            <div class="col-xs-12 col-sm-3">
                <select id="c-express_company" class="form-control selectpicker" name="row[express_company]" title="选择快递公司" data-live-search="true" style="height:31px;">
                    {foreach name="companyList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.express_company" }selected{/in}>{$vo}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('快递单号')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-express_number" class="form-control" type="text" name="row[express_number]" value="{$row.express_number}" title="">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('快递手机号')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-express_phone" class="form-control" type="number" name="row[express_phone]" value="{$row.express_phone}" title="" placeholder="选填，顺丰快递必填">
            </div>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收件人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" type="text" name="row[name]" value="{$row.name}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" type="text" name="row[phone]" value="{$row.phone}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省份')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province" class="form-control" type="text" name="row[province]" value="{$row.province}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('城市')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city" class="form-control" type="text" name="row[city]" value="{$row.city}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control" type="text" name="row[area]" value="{$row.area}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('详细地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" type="text" name="row[address]" value="{$row.address}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-note" class="form-control" type="text" name="row[note]" value="{$row.note}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('多包裹物流信息')}:</label>
        <div class="col-xs-12 col-sm-8">
          <textarea id="c-express_note" class="form-control" type="text" name="row[express_note]" title="" rows="15" cols="30">{$row.express_note}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>
